#import('dart:html');
#import('BubbleGrid.dart');
#import('BubbleDrawer.dart');
#import('BubbleEventCreator.dart');
#import('BubbleUserAction.dart');

/** The main method for running the Dart Bubbles app. */
void main() {
  
  // Sets up a new game on an 8 by 15 grid of bubbles.
  BubbleGrid game = new BubbleGrid(8, 15);
  game.initializeBubbles();
  
  // Display the game
  BubbleDrawer drawer = new BubbleDrawer(game);
  drawer.drawGame();
    
  // Add the onClick events which drive the game
  BubbleEventCreator eventCreator = new BubbleEventCreator(new BubbleUserAction(drawer));
  eventCreator.setNewGameButtonOnClickEvent();
  eventCreator.setBubblesOnClickEvents();
  
}
